package com.cy.pj.goods.dao;

import com.cy.pj.goods.pojo.Goods;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
/*@Repository*/
public class GoodsDaoImpl implements GoodsDao{
    @Autowired
    private SqlSessionFactory sqlSessionFactory;
    @Autowired
    private SqlSession sqlSession;

    @Override
    public List<Goods> findGoods() {
        return sqlSession.getMapper(GoodsDao.class).findGoods();
    }
}
